import React, {Component} from 'react'
import {Provider} from 'react-redux'

import {E} from './configs'
import configureStore from './store/configuteStore'
import {AppWithNavigationState} from './routers'
import { View, YellowBox } from 'react-native'

const store = configureStore()

global.actionUtil = (type, payload) => store.dispatch({type, payload}) //定义全局actions

console.disableYellowBox = true;


class App extends Component {
    constructor() {
        super();
        this.state = {};

    }
    render() {
        return (
            <Provider store={store}>
                <View style={{flex: 1}}>
                    <AppWithNavigationState/>
                </View>
            </Provider>
        )
    }
}

export default App
